const mixin = {
  methods: {
    toggle(){
      this.active = !this.active
    },
    cancel(){
      this.active = false
    },
    close(){
      this.cancel();
    },
    reset(){
      throw Error('reset() method not implemented')
    },
    confirm(){
      this.toggle()
    }
  },
  data() {
    return {
      active: false,
      title: ''
    }
  }
}
export default mixin